<script type="text/javascript">

	$(document).ready(function() {
		var email = $('#email');
		var password = $('#password');
	
		// Validate on submit
		$('#signinForm').submit(function() {
			return FormUtils.validateEmail(email, true, true) &&
				FormUtils.validatePassword(password, true, true);
		});
		
		// Validate on email change
		email.blur(function() {
			FormUtils.validateEmail(this, false, false);
		});
		
		// Validate on password change
		password.blur(function() {
			FormUtils.validatePassword(this, false, false);
		});
	});
	
</script>